﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace proj3
{
    static class Program
    {
        static public List<Philosopher> nameList;
        //static public PltForm majorform;

        /// <summary>
        /// The main entry point for the application.
        /// </summary>


        static void Main()
        {
            int counter = 0;
            string line;
            nameList = new List<Philosopher>();
            // Read the file and display it line by line.
            System.IO.StreamReader file = new System.IO.StreamReader("data.txt");
            while ((line = file.ReadLine()) != null)
            {
                nameList.Add(new Philosopher(line));
                counter++;
            }

            file.Close();

            // Suspend the screen.
            Console.ReadLine();
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new PltForm());
        }
    }
}
